@extends('layouts.master')

@section('title','查詢訂單')
@section('content')
    <div class="py-5 text-center">
        <h2>訂單查詢</h2>
    </div>
    {{ csrf_field() }}
        <div class="panel panel-default">
            <div class="panel-heading">
                目前任務
            </div>

            <div class="panel-body">
                <table class="table table-striped task-table">

                    <!-- 表頭 -->
                    <thead>
                    <th>Task</th>
                    <th>&nbsp;</th>
                    </thead>

                    <!-- 表身 -->
                    <tbody>
                    @foreach ($carts as $carts)
                        <tr>
                            <!-- 任務名稱 -->
                            <td class="table-text">
                                <div>{{ $carts->book_id }}{{ $carts->user_id }}{{ $carts->count }}</div>
                                <div>{{ $carts->count }}</div>
                            </td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>
        </div>


        </div>
@endsection
